package com.classic.init;

import android.graphics.drawable.Drawable;

import com.classic.content.contents;
import com.classic.duanzhi.R;

/**
 * 初始化当前项目一些信息
 */
public class EpisodeLibrary {

    /**
     * 初始化Logo 跟 app 名称
     * @param appname
     * @param logo
     */
    public static void initAppNameLogo(String appname,Drawable logo,String type) {
        contents.APPNAME = appname;
        contents.appLogo = logo;
        switch (type){
            case DouDouTianQi:
                initDouDouTianQi();
                break;
            case GuanXuanShouDian:
                initGuanXuanShouDian();
                break;
            case QuanNeng:
                initQuanNeng();
                break;
            case GuanXuanJiaKao:
                initGuanXuanJiaKao();
                break;
            case ZhiHuiLiuLanQi:
                initZhiHuiLiuLanQi();
                break;
            case GuanFangWenJianGuanJia:
                initGuanFangWenJianGuanJia();
                break;
            case GuanXuanErWeiMa:
                initGuanXuanErWeiMa();
                break;
            case YaoKongZhuShou:
                initYaoKongZhuShou();
                break;
            case ZhiNengKongTiao:
                initZhiNengKongTiao();
                break;
            case SHOUJIKONGTIAO:
                initShouJiKongTiao();
                break;
            case SHOUJIWANNENG:
                initShouJiWanNengKongTiao();
                break;
            case JIADIANWANNENG:
                initJiaDianWanNnegTiao();
                break;
            case WANNENGSAOMIAO:
                initWanNengSaoMiao();
                break;
        }
    }
    public static final String DouDouTianQi = "1";
    public static final String GuanXuanShouDian = "2";
    public static final String QuanNeng = "3";
    public static final String GuanXuanJiaKao = "4";
    public static final String ZhiHuiLiuLanQi = "5";
    public static final String GuanFangWenJianGuanJia = "6";
    public static final String GuanXuanErWeiMa = "7";
    public static final String YaoKongZhuShou = "8";
    public static final String ZhiNengKongTiao = "9";
    public static final String SHOUJIKONGTIAO = "10";
    public static final String SHOUJIWANNENG = "11";
    public static final String JIADIANWANNENG = "12";
    public static final String WANNENGSAOMIAO = "13";

    /**
     * 初始化Logo 跟 app 名称
     * @param appname
     * @param logo
     */
    public static void initAppNameLogo1(String appname,Drawable logo,String id) {
        contents.APPNAME = appname;
        contents.appLogo = logo;
        contents.QY_ID = id;
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     * 初始化Logo 跟 app 名称
     * @param appname
     * @param logo
     */
    public static void initAppNameLogo1(String appname,Drawable logo,String id,int color1,int color2) {
        contents.APPNAME = appname;
        contents.appLogo = logo;
        contents.QY_ID = id;
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     * 初始化兜兜天气预报
     */
    public static void initDouDouTianQi() {
        contents.QY_ID = "2e98d7b9f85540d77ed6abe10fa72778";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_doudou;
    }


    /**
     * 初始化官宣手电
     */
    public static void initGuanXuanShouDian() {
        contents.QY_ID = "aca1129ab8dffbc3921b6bd6cd8aa59e";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_shoudian;
    }


    /**
     * 初始全能扫描王
     */
    public static void initQuanNeng() {
        contents.QY_ID = "0a296578335f417e23cbd9cdec3d5c32";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_quanneng;
    }

    /**
     * 初始化官宣驾考
     */
    public static void initGuanXuanJiaKao() {
        contents.QY_ID = "54cc562e06070f67c87036286955b47f";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_jiakao;
    }

    /**
     * 初始化智慧浏览器
     */
    public static void initZhiHuiLiuLanQi() {

        contents.QY_ID = "264c7a5e9b8ef47cbdb8c946521aecd4";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_liulanqi;
    }

    /**
     * 初始化官方文件管家
     */
    public static void initGuanFangWenJianGuanJia() {
        contents.titleColor = R.color.ffffff;
        contents.QY_ID = "18cf199be78fe9e750c14aa072a2e801";
        contents.TITLE_BACKGROUND = R.color.b_wenjianjia;
    }

    /**
     * 初始化官宣二维码
     */
    public static void initGuanXuanErWeiMa() {

        contents.QY_ID = "b37aa06d803684d178d1eff4659e4274";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_erweima;
    }

    /**
     * 初始化遥控助手
     */
    public static void initYaoKongZhuShou() {
        contents.QY_ID = "dbd0bb2fa494dc1c7b6a356a149fefe7";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     * 智能空调
     */
    public static void initZhiNengKongTiao() {
        contents.QY_ID = "ce033db2741f525735b5503505b83b19";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     * 家电万能遥控器
     */
    public static void initJiaDianWanNnegTiao() {
        contents.QY_ID = "edc98ab21ea70bc93199ee8c4a9576ae";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     *手机空调
     */
    public static void initShouJiKongTiao() {
        contents.QY_ID = "9cb0d2ad4f07b08c37790b6e1354f5fa";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     *手机万能
     */
    public static void initShouJiWanNengKongTiao() {
        contents.QY_ID = "6a073a53cacd7799318acc40a7cb30b7";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }
    /**
     *万能扫描
     */
    public static void initWanNengSaoMiao() {
        contents.QY_ID = "65ba352c4e7f036da241fd9dc84b6125";
        contents.titleColor = R.color.ffffff;
        contents.TITLE_BACKGROUND = R.color.b_yaokongzhushou;
    }


}
